home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 April / april_2001.iso / intercd / root / ^Palm / Games / eCross / src / Level.java < prev    next >
Encoding:
Java Source  |  2000-07-27  |  1.5 KB  |  63 lines

  1. /*
  2.  * Level.java - A level
  3.  * Copyright (C) 2000 Romain Guy
  4.  * guy.romain@bigfoot.com
  5.  * www.jext.org
  6.  *
  7.  * This program is free software; you can redistribute it and/or
  8.  * modify it under the terms of the GNU General Public License
  9.  * as published by the Free Software Foundation; either version 2
  10.  * of the License, or any later version.
  11.  *
  12.  * This program is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  * GNU General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU General Public License
  18.  * along with this program; if not, write to the Free Software
  19.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20.  */
  21.  
  22. /**
  23.  * <code>Level</code> contains a level.
  24.  * @author Romain Guy <guy.romain@bigfoot.com>
  25.  * @version 1.0
  26.  */
  27.  
  28. public class Level
  29. {
  30.   // the allowed space for a level name
  31.   public static final int NAME_SPACE = 12;
  32.   // level name
  33.   private String name;
  34.   // level datas
  35.   private byte[] level;
  36.   // high score
  37.   private byte[] high;
  38.  
  39.   public Level(byte[] high, String name, byte[] level)
  40.   {
  41.     this.high = high;
  42.     this.name = name;
  43.     this.level = level;
  44.   }
  45.  
  46.   public byte[] getHighScore()
  47.   {
  48.     return high;
  49.   }
  50.  
  51.   public String getName()
  52.   {
  53.     return name;
  54.   }
  55.  
  56.   public byte[] getLevel()
  57.   {
  58.     return level;
  59.   }
  60. }
  61.  
  62. // End of Level.java
  63.